import Vue from 'vue'

export default {
  /* ************ 短信 *************/
  // 基本信息
  smsRechargeInfo (data) {
    return Vue.http.post('./gxMsgRecharge/findRechargeInfo', data)
  },

  // 短信充值列表
  smsRechargeList (data) {
    return Vue.http.post('./gxMsgRechargeDetail/findGxMsgRechargeDetail', data)
  },

  // 保存短信充值，产生订单
  saveSmsRechargeDetail (data) {
    return Vue.http.post('./gxMsgRechargeDetail/saveGxMsgRechargeDetail', data)
  },

  // 获取订单详情
  getSmsRechargeDetail (data) {
    return Vue.http.post('./gxMsgRechargeDetail/findMsgRechargeDetail', data)
  },

  // 去支付
  confirmPay (data) {
    return Vue.http.post('./gxMsgRechargeDetail/callBackData', data)
  },

  /* ************ 短信发送 *************/
  // 短信发送记录
  smsSendList (data) {
    return Vue.http.post('./gxMsgSendlog/findgxMsgSendlog', data)
  },

  // 短信发送
  sendSms (data) {
    data.sendWay = 1
    data.used = 1
    return Vue.http.post('./gxMsgSendlog/saveMsgSendlog', data)
  },

  // 短信管理员确认发送
  sendSmsConfirm (data) {
    return Vue.http.post('./gxMsgSendlog/sendSms', data)
  },

  /* ************ 账户金额 *************/
  // 获取俱乐部金额
  getAccount (data) {
    return Vue.http.post('./gxRclubAccount/findgxRclubAccounnt', data)
  },
  // 获取支付明细
  getPayDetailList (data) {
    return Vue.http.post('./gxActivityPayDetail/findGxActivityPayDetailList', data)
  },

  /* ************ 账户提现 *************/
  // 账户提现列表
  getWithdrawalsList (data) {
    return Vue.http.post('./gxWithdrawController/getWithdrawRcList', data)
  },
  // 发送确认提现短信
  getWithdrawSms (data) {
    return Vue.http.post('./gxWithdrawController/sendSms', data)
  },
  // 申请提现
  applyWithdrawSms (data) {
    return Vue.http.post('./gxWithdrawController/saveWithdraw', data)
  }
}
